package cn.tedu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class HelloController1 {
    @RequestMapping("/hello")
    @ResponseBody
    public String hello() {
        System.out.println("接收到了用户的hello的请求！！！");
        return "hello";
    }
    @RequestMapping("/dog")
    @ResponseBody
    public String hello1() {
        System.out.println("接收到了用户的dog的请求！！！");
        return "dog";
    }
}
